package 剑指offer;

/**
 * @author zhangjunfei
 * @date 2023/7/21 15:26
 */
public class O_17 {
    public int[] printNumbers(int n) {
        int end = (int) (Math.pow(10, n) - 1);
        int[] result = new int[end];
        for (int i = 0; i < end; i++) {
            result[i] = i + 1;
        }
        return result;
    }
}
